package 面向对象初级.类和对象;

public class Person {
    String name;
    int age;
    boolean isMarry;
}

class PersonTest {
    public static void main(String[] args) {
        Person person = new Person();
        person.name = "张三";
        person.age = 20;
        person.isMarry = true;

        Person person01 = new Person();
        person01.age = 30;

        Person person02 = person;
        person02.name = "王楚钦";

        System.out.println(person);
        System.out.println(person01);
        System.out.println(person02);
    }
}
